not able to create script for the below statement












-1














I have to run in a script; I have tried, but I'm not sure how to call the shell from server.



[root@server ~]# ssh storagenode
storagenode:> shell
Executing shell commands may invalidate your service contract. Continue? (Y/N) Y

Executing raw shell; "exit" to return to appliance shell ...
+-----------------------------------------------------------------------------+
| You are entering the operating system shell. By confirming this action in |
| the appliance shell you have agreed that THIS ACTION MAY VOID ANY SUPPORT |
| AGREEMENT. If you do not agree to this -- or do not otherwise understand |
| what you are doing -- you should type "exit" at the shell prompt. EVERY |
| COMMAND THAT YOU EXECUTE HERE IS AUDITED, and support personnel may use |
| this audit trail to substantiate invalidating your support contract. The |
| operating system shell is NOT a supported mechanism for managing this |
| appliance, and COMMANDS EXECUTED HERE MAY DO IRREPARABLE HARM. |
| |
| NOTHING SHOULD BE ATTEMPTED HERE BY UNTRAINED SUPPORT PERSONNEL UNDER ANY |
| CIRCUMSTANCES. This appliance is a non-traditional operating system |
| environment, and expertise in a traditional operating system environment |
| in NO WAY constitutes training for supporting this appliance. THOSE WITH |
| EXPERTISE IN OTHER SYSTEMS -- HOWEVER SUPERFICIALLY SIMILAR -- ARE MORE |
| LIKELY TO MISTAKENLY EXECUTE OPERATIONS HERE THAT WILL DO IRREPARABLE |
| HARM. Unless you have been explicitly trained on supporting this |
| appliance via the operating system shell, you should immediately return |
| to the appliance shell. |
| |
| Type "exit" now to return to the appliance shell. |
+-----------------------------------------------------------------------------
storagenode#
storagenode# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
test 64.1T 30.5T 33.6T 47% 1.00x ONLINE -
nfs 1.09T 119G 993G 10% 1.00x ONLINE -
storagenode# exit
logout
storagenode:> exit
Connection to storagenode closed.









share|improve this question
























  • what exactly do you want done, and where did your attempt fail? Apart from the verbose warning, it appears that you successfully executed a "zpool list" command.
    – Jeff Schaller
    Dec 28 '18 at 15:58










  • i have to run this from server so if utilization is cross more then 80 then i will set the alert. [root@server ~]# ssh storage shell aksh: confirmation needed for scripted command (scripted commands must be prefixed with "confirm" to automatically confirm or "deny" to automatically deny) [root@server ~]#
    – pandi
    Dec 28 '18 at 16:05








  • 1




    @pandi You seem to be working with a very specific, non-standard appliance that is covered by a support agreement. It may be more straightforward to just ask the appliance vendor for support.
    – Haxiel
    Dec 28 '18 at 16:20










  • What output, if any, do you get from ssh -q storagenode id? (For your appropriate value of storagenode.)
    – roaima
    Dec 28 '18 at 17:11








  • 1




    You don't need a shell to get disk usage. Type status dashboard and look at the Data section. Maybe there's a status data show command that will give you just the data section (it wasn't clear from the manual).
    – Mark Plotnick
    Dec 28 '18 at 17:35


















-1














I have to run in a script; I have tried, but I'm not sure how to call the shell from server.



[root@server ~]# ssh storagenode
storagenode:> shell
Executing shell commands may invalidate your service contract. Continue? (Y/N) Y

Executing raw shell; "exit" to return to appliance shell ...
+-----------------------------------------------------------------------------+
| You are entering the operating system shell. By confirming this action in |
| the appliance shell you have agreed that THIS ACTION MAY VOID ANY SUPPORT |
| AGREEMENT. If you do not agree to this -- or do not otherwise understand |
| what you are doing -- you should type "exit" at the shell prompt. EVERY |
| COMMAND THAT YOU EXECUTE HERE IS AUDITED, and support personnel may use |
| this audit trail to substantiate invalidating your support contract. The |
| operating system shell is NOT a supported mechanism for managing this |
| appliance, and COMMANDS EXECUTED HERE MAY DO IRREPARABLE HARM. |
| |
| NOTHING SHOULD BE ATTEMPTED HERE BY UNTRAINED SUPPORT PERSONNEL UNDER ANY |
| CIRCUMSTANCES. This appliance is a non-traditional operating system |
| environment, and expertise in a traditional operating system environment |
| in NO WAY constitutes training for supporting this appliance. THOSE WITH |
| EXPERTISE IN OTHER SYSTEMS -- HOWEVER SUPERFICIALLY SIMILAR -- ARE MORE |
| LIKELY TO MISTAKENLY EXECUTE OPERATIONS HERE THAT WILL DO IRREPARABLE |
| HARM. Unless you have been explicitly trained on supporting this |
| appliance via the operating system shell, you should immediately return |
| to the appliance shell. |
| |
| Type "exit" now to return to the appliance shell. |
+-----------------------------------------------------------------------------
storagenode#
storagenode# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
test 64.1T 30.5T 33.6T 47% 1.00x ONLINE -
nfs 1.09T 119G 993G 10% 1.00x ONLINE -
storagenode# exit
logout
storagenode:> exit
Connection to storagenode closed.









share|improve this question
























  • what exactly do you want done, and where did your attempt fail? Apart from the verbose warning, it appears that you successfully executed a "zpool list" command.
    – Jeff Schaller
    Dec 28 '18 at 15:58










  • i have to run this from server so if utilization is cross more then 80 then i will set the alert. [root@server ~]# ssh storage shell aksh: confirmation needed for scripted command (scripted commands must be prefixed with "confirm" to automatically confirm or "deny" to automatically deny) [root@server ~]#
    – pandi
    Dec 28 '18 at 16:05








  • 1




    @pandi You seem to be working with a very specific, non-standard appliance that is covered by a support agreement. It may be more straightforward to just ask the appliance vendor for support.
    – Haxiel
    Dec 28 '18 at 16:20










  • What output, if any, do you get from ssh -q storagenode id? (For your appropriate value of storagenode.)
    – roaima
    Dec 28 '18 at 17:11








  • 1




    You don't need a shell to get disk usage. Type status dashboard and look at the Data section. Maybe there's a status data show command that will give you just the data section (it wasn't clear from the manual).
    – Mark Plotnick
    Dec 28 '18 at 17:35
















-1












-1








-1







I have to run in a script; I have tried, but I'm not sure how to call the shell from server.



[root@server ~]# ssh storagenode
storagenode:> shell
Executing shell commands may invalidate your service contract. Continue? (Y/N) Y

Executing raw shell; "exit" to return to appliance shell ...
+-----------------------------------------------------------------------------+
| You are entering the operating system shell. By confirming this action in |
| the appliance shell you have agreed that THIS ACTION MAY VOID ANY SUPPORT |
| AGREEMENT. If you do not agree to this -- or do not otherwise understand |
| what you are doing -- you should type "exit" at the shell prompt. EVERY |
| COMMAND THAT YOU EXECUTE HERE IS AUDITED, and support personnel may use |
| this audit trail to substantiate invalidating your support contract. The |
| operating system shell is NOT a supported mechanism for managing this |
| appliance, and COMMANDS EXECUTED HERE MAY DO IRREPARABLE HARM. |
| |
| NOTHING SHOULD BE ATTEMPTED HERE BY UNTRAINED SUPPORT PERSONNEL UNDER ANY |
| CIRCUMSTANCES. This appliance is a non-traditional operating system |
| environment, and expertise in a traditional operating system environment |
| in NO WAY constitutes training for supporting this appliance. THOSE WITH |
| EXPERTISE IN OTHER SYSTEMS -- HOWEVER SUPERFICIALLY SIMILAR -- ARE MORE |
| LIKELY TO MISTAKENLY EXECUTE OPERATIONS HERE THAT WILL DO IRREPARABLE |
| HARM. Unless you have been explicitly trained on supporting this |
| appliance via the operating system shell, you should immediately return |
| to the appliance shell. |
| |
| Type "exit" now to return to the appliance shell. |
+-----------------------------------------------------------------------------
storagenode#
storagenode# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
test 64.1T 30.5T 33.6T 47% 1.00x ONLINE -
nfs 1.09T 119G 993G 10% 1.00x ONLINE -
storagenode# exit
logout
storagenode:> exit
Connection to storagenode closed.









share|improve this question















I have to run in a script; I have tried, but I'm not sure how to call the shell from server.



[root@server ~]# ssh storagenode
storagenode:> shell
Executing shell commands may invalidate your service contract. Continue? (Y/N) Y

Executing raw shell; "exit" to return to appliance shell ...
+-----------------------------------------------------------------------------+
| You are entering the operating system shell. By confirming this action in |
| the appliance shell you have agreed that THIS ACTION MAY VOID ANY SUPPORT |
| AGREEMENT. If you do not agree to this -- or do not otherwise understand |
| what you are doing -- you should type "exit" at the shell prompt. EVERY |
| COMMAND THAT YOU EXECUTE HERE IS AUDITED, and support personnel may use |
| this audit trail to substantiate invalidating your support contract. The |
| operating system shell is NOT a supported mechanism for managing this |
| appliance, and COMMANDS EXECUTED HERE MAY DO IRREPARABLE HARM. |
| |
| NOTHING SHOULD BE ATTEMPTED HERE BY UNTRAINED SUPPORT PERSONNEL UNDER ANY |
| CIRCUMSTANCES. This appliance is a non-traditional operating system |
| environment, and expertise in a traditional operating system environment |
| in NO WAY constitutes training for supporting this appliance. THOSE WITH |
| EXPERTISE IN OTHER SYSTEMS -- HOWEVER SUPERFICIALLY SIMILAR -- ARE MORE |
| LIKELY TO MISTAKENLY EXECUTE OPERATIONS HERE THAT WILL DO IRREPARABLE |
| HARM. Unless you have been explicitly trained on supporting this |
| appliance via the operating system shell, you should immediately return |
| to the appliance shell. |
| |
| Type "exit" now to return to the appliance shell. |
+-----------------------------------------------------------------------------
storagenode#
storagenode# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
test 64.1T 30.5T 33.6T 47% 1.00x ONLINE -
nfs 1.09T 119G 993G 10% 1.00x ONLINE -
storagenode# exit
logout
storagenode:> exit
Connection to storagenode closed.






shell-script scripting solaris zfs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 28 '18 at 16:25









Jeff Schaller

39k1054125




39k1054125










asked Dec 28 '18 at 15:55









pandipandi

12




12












  • what exactly do you want done, and where did your attempt fail? Apart from the verbose warning, it appears that you successfully executed a "zpool list" command.
    – Jeff Schaller
    Dec 28 '18 at 15:58










  • i have to run this from server so if utilization is cross more then 80 then i will set the alert. [root@server ~]# ssh storage shell aksh: confirmation needed for scripted command (scripted commands must be prefixed with "confirm" to automatically confirm or "deny" to automatically deny) [root@server ~]#
    – pandi
    Dec 28 '18 at 16:05








  • 1




    @pandi You seem to be working with a very specific, non-standard appliance that is covered by a support agreement. It may be more straightforward to just ask the appliance vendor for support.
    – Haxiel
    Dec 28 '18 at 16:20










  • What output, if any, do you get from ssh -q storagenode id? (For your appropriate value of storagenode.)
    – roaima
    Dec 28 '18 at 17:11








  • 1




    You don't need a shell to get disk usage. Type status dashboard and look at the Data section. Maybe there's a status data show command that will give you just the data section (it wasn't clear from the manual).
    – Mark Plotnick
    Dec 28 '18 at 17:35




















  • what exactly do you want done, and where did your attempt fail? Apart from the verbose warning, it appears that you successfully executed a "zpool list" command.
    – Jeff Schaller
    Dec 28 '18 at 15:58










  • i have to run this from server so if utilization is cross more then 80 then i will set the alert. [root@server ~]# ssh storage shell aksh: confirmation needed for scripted command (scripted commands must be prefixed with "confirm" to automatically confirm or "deny" to automatically deny) [root@server ~]#
    – pandi
    Dec 28 '18 at 16:05








  • 1




    @pandi You seem to be working with a very specific, non-standard appliance that is covered by a support agreement. It may be more straightforward to just ask the appliance vendor for support.
    – Haxiel
    Dec 28 '18 at 16:20










  • What output, if any, do you get from ssh -q storagenode id? (For your appropriate value of storagenode.)
    – roaima
    Dec 28 '18 at 17:11








  • 1




    You don't need a shell to get disk usage. Type status dashboard and look at the Data section. Maybe there's a status data show command that will give you just the data section (it wasn't clear from the manual).
    – Mark Plotnick
    Dec 28 '18 at 17:35


















what exactly do you want done, and where did your attempt fail? Apart from the verbose warning, it appears that you successfully executed a "zpool list" command.
– Jeff Schaller
Dec 28 '18 at 15:58




what exactly do you want done, and where did your attempt fail? Apart from the verbose warning, it appears that you successfully executed a "zpool list" command.
– Jeff Schaller
Dec 28 '18 at 15:58












i have to run this from server so if utilization is cross more then 80 then i will set the alert. [root@server ~]# ssh storage shell aksh: confirmation needed for scripted command (scripted commands must be prefixed with "confirm" to automatically confirm or "deny" to automatically deny) [root@server ~]#
– pandi
Dec 28 '18 at 16:05






i have to run this from server so if utilization is cross more then 80 then i will set the alert. [root@server ~]# ssh storage shell aksh: confirmation needed for scripted command (scripted commands must be prefixed with "confirm" to automatically confirm or "deny" to automatically deny) [root@server ~]#
– pandi
Dec 28 '18 at 16:05






1




1




@pandi You seem to be working with a very specific, non-standard appliance that is covered by a support agreement. It may be more straightforward to just ask the appliance vendor for support.
– Haxiel
Dec 28 '18 at 16:20




@pandi You seem to be working with a very specific, non-standard appliance that is covered by a support agreement. It may be more straightforward to just ask the appliance vendor for support.
– Haxiel
Dec 28 '18 at 16:20












What output, if any, do you get from ssh -q storagenode id? (For your appropriate value of storagenode.)
– roaima
Dec 28 '18 at 17:11






What output, if any, do you get from ssh -q storagenode id? (For your appropriate value of storagenode.)
– roaima
Dec 28 '18 at 17:11






1




1




You don't need a shell to get disk usage. Type status dashboard and look at the Data section. Maybe there's a status data show command that will give you just the data section (it wasn't clear from the manual).
– Mark Plotnick
Dec 28 '18 at 17:35






You don't need a shell to get disk usage. Type status dashboard and look at the Data section. Maybe there's a status data show command that will give you just the data section (it wasn't clear from the manual).
– Mark Plotnick
Dec 28 '18 at 17:35












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f491326%2fnot-able-to-create-script-for-the-below-statement%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f491326%2fnot-able-to-create-script-for-the-below-statement%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

List directoties down one level, excluding some named directories and files

list processes belonging to a network namespace

list systemd RuntimeDirectory mounts