03831d35f7499c87d51205817c93e9a8d42c4baestevel * CDDL HEADER START
03831d35f7499c87d51205817c93e9a8d42c4baestevel * The contents of this file are subject to the terms of the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Common Development and Distribution License, Version 1.0 only
03831d35f7499c87d51205817c93e9a8d42c4baestevel * (the "License"). You may not use this file except in compliance
03831d35f7499c87d51205817c93e9a8d42c4baestevel * with the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel * See the License for the specific language governing permissions
03831d35f7499c87d51205817c93e9a8d42c4baestevel * and limitations under the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * When distributing Covered Code, include this CDDL HEADER in each
03831d35f7499c87d51205817c93e9a8d42c4baestevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * If applicable, add the following below this CDDL HEADER, with the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * fields enclosed by brackets "[]" replaced with your own identifying
03831d35f7499c87d51205817c93e9a8d42c4baestevel * information: Portions Copyright [yyyy] [name of copyright owner]
03831d35f7499c87d51205817c93e9a8d42c4baestevel * CDDL HEADER END
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Use is subject to license terms.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#pragma ident "%Z%%M% %I% %E% SMI"
03831d35f7499c87d51205817c93e9a8d42c4baestevel * show.c: support for scadm show <variable> option (to show the value of
03831d35f7499c87d51205817c93e9a8d42c4baestevel * a service processor NV variable)
03831d35f7499c87d51205817c93e9a8d42c4baestevelstatic int ADM_Get_Next_Var(char *oldVar, char *newVar, int maxSize);
03831d35f7499c87d51205817c93e9a8d42c4baestevelstatic void command_line();
03831d35f7499c87d51205817c93e9a8d42c4baestevel DP_GET_NETWORK_CFG_R, sizeof (dp_get_network_cfg_r_t));
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* Print the network configuration */
03831d35f7499c87d51205817c93e9a8d42c4baestevel (void) printf("%s \r\n", gettext("SC ethernet is disabled."));
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* Include this if we want to display the IP mode */
03831d35f7499c87d51205817c93e9a8d42c4baestevel (void) printf("%s %s\r\n", gettext("Gateway address:"),
03831d35f7499c87d51205817c93e9a8d42c4baestevel (void) printf("%s %s\r\n", gettext("Ethernet address:"),
03831d35f7499c87d51205817c93e9a8d42c4baestevel Message.len = strlen(Variable) + 1; /* + 1 for string termination */
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* show variable setting */
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* The variable setting is right after the Status of the message */
03831d35f7499c87d51205817c93e9a8d42c4baestevelADM_Get_Next_Var(char *oldVar, char *newVar, int maxSize)
03831d35f7499c87d51205817c93e9a8d42c4baestevel Message.len = strlen(oldVar) + 1; /* + 1 for string */
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* termination */
03831d35f7499c87d51205817c93e9a8d42c4baestevel DP_GET_CFGVAR_NAME_R, sizeof (dp_get_cfgvar_name_r_t));
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* Last variable read */
03831d35f7499c87d51205817c93e9a8d42c4baestevel return (-1);
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* The variable is right after the Status of the message */
03831d35f7499c87d51205817c93e9a8d42c4baestevel return (0);