[Contents] [Prev] [Next] [Index] [Report an Error]

Obtaining and Recording Parameters Required by the JUNOS::Device Object

The JUNOS::Device object takes the following required parameters, specified as keys in a Perl hash:

The sample scripts record the parameters in a Perl hash called %deviceinfo, declared as follows:

     my %deviceinfo = (
        access => $access,
        login => $login,
        password => $password,
        hostname => $hostname,
     );

The sample scripts obtain the parameters from options entered on the command line by a user. Your application can also obtain values for the parameters from a file or database, or you can hardcode one or more of the parameters into the application code if they are constant.


[Contents] [Prev] [Next] [Index] [Report an Error]