ups modify

Changes the name, IP address, or SNMP community string for a given UPS device.

SYNOPSIS

ups ‑modify 
   ‑ups ups‑id‑or‑fqn
   [‑name new‑ups‑name]
   [‑ip ip‑address]
   [‑community community]

   [{‑sessionKey | ‑u admin‑user ‑oracleFS oracle‑fs‑system}]
   [{‑outputformat | ‑o} { text | xml }]
   [{‑timeout timeout‑in‑seconds | ‑verify | ‑usage | ‑example | ‑help}] 

DESCRIPTION

Run the ups ‑modify command to re-configure the SNMP settings for a given UPS device. If you are changing the community string, be sure that you also run the following commands to change the community strings for the SNMP trap host and query host definitions of the Oracle FS System:
snmp_host ‑modify ‑name /UPS_trap_host ‑community new-vendor-string
Changes the community string for the Oracle FS System to use to authenticate the SNMP traps that are sent by the UPS device.
snmp_host ‑modify ‑name /UPS_query_host ‑community new-vendor-string
Changes the community string for the Oracle FS System to send when querying the UPS device for information.
Note: As shown in the list above, when properly configured, there are two SNMP host entries for the Oracle FS System. Run the snmp_host ‑list command to obtain the unique identifiers for both entries.

Only administrators with primary administrator or admin1 roles are authorized to run this command.

Note: Only administrators with primary administrator or admin1 roles are authorized to run the ups modify command.

OPTIONS

ups

Specifies the fully qualified name (FQN) of the UPS device. The name must be preceded by a forward slash (/). You can also specify the unique ID for the UPS device.

name
Specifies the name of the new UPS that you have installed. The name that you provide is used to create a fully qualified name (FQN) after you power up the UPS and the Oracle FS System software discovers it. Use double quotation marks around names containing spaces or dashes. The following characters are invalid in a UPS name:
  • Non-printable characters, including ASCII 0 through 31, decimal

  • / (slash) and \ (backslash)

  • . (dot) and .. (dot dot)

  • Tabs

The Oracle FS System removes leading spaces and trailing spaces. Names are case sensitive.
ip

Specifies the new IP address of a UPS device that the Oracle FS System is monitoring on the management network.

community

Identifies the community string for the Oracle FS System to authenticate the SNMP traps that are sent by UPS devices. Use the unique community string that is provided by the UPS vendor. The string you specify must match the community string that you specify when you configure the Oracle FS System to be an SNMP trap host

GLOBAL OPTIONS FOR SUBCOMMANDS

The following global options can be used for fscli command-subcommand pairs that do not include other command-line options:
help

Returns the context-sensitive help for the specified subcommand.

usage

Returns the subcommand syntax for the given command, including all of the options that are available for the command-subcommand pair.

GLOBAL OPTIONS FOR COMMANDS

The following global options can be used for fully formed fscli commands:

example
Returns sample output from the specified command.
Note: To see the output in XML format, include the ‑o xml option.
timeout timeout-in-seconds
Specifies the length of time (timeout-in-seconds) that the command line interface waits before another command is allowed to run. If the command takes longer to run than the specified time limit, the system continues processing the command, but the command prompt is made available so that you can issue another command. If the -timeout option is omitted, the command line interface blocks until the one of the following conditions is met:
  • The command completes successfully.

  • The command returns with an error.

  • The session times out.

Note: Be sure to check the state of the system after initiating a long running command with the ‑timeout option. Many fscli commands run a series of underlying commands in sequence. When the timeout value is reached before all of the underlying commands have completed, the fscli command does not complete with the outstanding tasks reporting a failure status.
outputformat | ‑o { text | xml }
Controls the type of the output the system returns from a command. If the ‑outputformat option is not included, the format of the output defaults to simple text. If xml is provided, the output is a collection of XML elements.
Note: For XML output, if internal errors occur during command execution, each error is included in a separate <ErrorList> tag.
verify

Inspects the validity of the command syntax, not the semantics. Used to test the structure of a command without running the command. Does not determine whether errors would be produced if you issue a structurally correct command with the input provided.

sessionkey

Directs the CLI to prompt you to supply a session key when you issue the command. The CLI displays Sessionkey: as the prompt. To obtain a session key, log in with the ‑returnKey option specified. After the session is established, the session key is displayed in STDOUT. If you request a session key, the ‑sessionkey option is required syntax for all commands that are issued in a given session. In environments with more than one Oracle FS System, the session key is used to determine to which Oracle FS System to direct the command for validation. Session keys are also used to establish two or more CLI sessions when using a shared administrator account.

u admin-useroracleFS oracle‑fs-system
Routes the command to a particular Oracle FS System for execution. This option passes the name of the administrator account to use when opening the session on the specified system. Identify a specific Oracle FS System by its IP address or by the name that is recorded in the domain name system (DNS). When logging in to the Oracle FS System using the ‑u option and the ‑oracleFS option, the fscli application prompts you for a password on the command line interface for access. The Oracle FS System and the account login information are used to authenticate the current session. Establishing a login session by specifying an Oracle FS System and an account does not change the credentials that are associated with the active sessions that are running on other clients.
Caution
Oracle recommends that you not use the Cygwin command line interface to run the fscli application on Windows platforms. If you are running the Cygwin interface and include the ‑u option as a part of the ‑list subcommand, the password for the specified account is included in the results. Exposing the password can cause a breach in security.

EXAMPLE

Task

Change the SNMP community string that is used for authentication to a new string that was provided by the UPS vendor to support a recent firmware upgrade.

Parameters
  • The name of the Oracle FS System as an SNMP trap host: /UPS_trap_host

  • The name of the Oracle FS System as an SNMP query host: /UPS_query_host

  • The name of the UPS device preceded by a forward slash (/) character: /Bldg7UPS

  • The new community string: 22269VmDC12

$ fscli snmp_host ‑modify ‑id /UPS_trap_host ‑community 22269VmDC12
$ fscli snmp_host ‑modify ‑id /UPS_query_host ‑community 22269VmDC12
$ fscli ups ‑modify ‑name /Bldg7UPS ‑community 22269VmDC12