#Python automation script - system console is only available from the SP CLI.

1 messages · Page 1 of 1 (latest)

harsh anchor
#

Hey all,

I work for a company that buys and sell computer hardware.
We have a NETAPP FAS2520A test rig for some of the older drives. NetApp Release 8.3P.

After zeroing the drives we like to keep a record of the output from disk show -instance.
I would like to automate this process like I do with many of my other storage arrays.

The problem I am facing is when I connect via SSH using a python script and run "system console" I get "system console is only available from the SP CL".

Maybe I am going the wrong way about this?

I am aware that the API was only introduced in versions 9.6+.

I look forward to hearing your suggestions 🙂

limpid drift
#

unless you're sshing to the service processor IP, there's no need to run system console. sounds like you're probably going to the cluster management IP?

harsh anchor
#

Hey Dawn, thanks for the reply. Yeah you are correct I am sshing into the cluster management IP. Is this not the correct way to go about it?

limpid drift
#

that is the correct way. it's just 'system console' is a way to elevate the service processor prompt to the cluster shell prompt. by sshing directly to the cluster management ip, you are already at the cluster shell.

#

so just remove the system console part from your script

harsh anchor
#

But I can't seem to to run the "disk show" command without logging into the system console.

#

SP netapptestrig-01> disk show
command not found. Type '?' for a list of available commands.
SP netapptestrig-01> ?
date - print date and time
exit - exit from the SP command line interface
events - print system events and event information
help - print command help
priv - show and set user mode
sp - commands to control the SP
rsa - commands for Remote Support Agent
system - commands to control the system
version - print Service Processor version

limpid drift
#

if your prompt shows SP, you're logging into the service processor.
you just said you were sshing to the cluster management lif. those are two different IPs.

#

when you ssh to the cluster management IP, your shell prompt will look like this:
cluster-name::>