Command Line interface (CLI)

learn more… | top users | synonyms (2)

1
vote
0answers
11 views

config variable php_suffix does not match

I have a php instance on Webuzo (centos-6-x86_64.openvz) in /usr/local/apps/php54/. It already has pecl and phpize in /usr/local/apps/php54/bin/. When installing igbinary with command ...
1
vote
0answers
12 views

Use Amazon cloudwatch cli to create alarm on certain instance

I'm hoping to use mon-put-metric-alarm to create alarms on my instances, but there seems no way to pass instance information such as instance id to mon-put-metric-alarm, and the alarm I created by ...
5
votes
2answers
186 views

Non-interactive creation of SSL certificate requests

Is there a way to create SSL cert requests by specifying all the required parameters on the initial command? I am writing a CLI-based web server control panel and I would like to avoid the use of ...
2
votes
1answer
100 views

configuring command prompt in Asterisk CLI

I am trying to set up color prompt in asterisk CLI. In the documentation I have found this: %Cn[;n] Change terminal foreground (and optional background) color to specified. A full list of colors may ...
1
vote
0answers
80 views

OpenVPN ignoring openvpn.conf, throws unrecognized or missing option

I set up openVPN on Debian, but can't start the service. [FAIL] Starting virtual private network daemon: openvpn failed! Syslog says Options error: Unrecognized option or missing parameter(s) in ...
0
votes
1answer
22 views

AWS: Can we enable MFA for Command Line access?

I enabled MFA for a AWS user and it works, when the user sign in to AWS Console. However, this user can also access all services via CLI (by access key and secret key), does that mean the CLI will ...
2
votes
1answer
70 views

How to interactively change the password of a user account on a remote windows machine (in the same LAN) from a local machine's command line prompt? [closed]

Suppose there is a user account named testuser on a windows machine and it belongs to the Users group and the Users group only. The current password of testuser is known. The question is, how to ...
0
votes
1answer
19 views

Composer works as root but not as a common user, why?

I have installed Composer Globally as this docs shows and it works for root user on my server CentOS 6.6 but as a normal user lets said webvm user it doesn't saying that composer is not found (see ...
0
votes
0answers
14 views

How to list all VPC dependencies in AWS CLI?

I want to delete VPC through CLI. But get an error: A client error (DependencyViolation) occurred when calling the DeleteVpc operation: The vpc 'vpc-xxx' has dependencies and cannot be deleted. ...
0
votes
0answers
16 views

VMware CLI cannot seem to find where to create VM?

I have installed VMware CLI 5.5 on a CentOS box to bash-script VM functions, including creating VMs. I can not find the right command to create a VM. Has anyone created a VM using esxcfg or ...
2
votes
1answer
35 views

windows update configuration from command line

I'm building a script to rebuild a server from scratch. I want to configure Windows Update as below. I can set the first option using reg add ...
0
votes
2answers
22 views

How to check disk usage of directories in a particular partition?

If I use "df /dev/sda1 -h", it only shows the whole usage info like used and avail. But I want to see the usage of each directory. However, if I do "du -h --max-depth=1", it shows all the directories ...
3
votes
4answers
176 views

How can I view information for domain groups from the command line with just core Windows utilities?

I'm familiar with using the NET commands to get information for local users and groups in most scenarios. However, I'm running into a problem using it to get information for domain groups with long ...
0
votes
0answers
11 views

How do I get Spark to load multiple chat rooms from the command line?

We are using an XMPP chat client called Spark, connected to an Openfire server. I have a task to try and have our Spark users automatically load up a chat room, depending on what their group ...
0
votes
1answer
89 views

Cisco IOS: Logging only debug messages on command-line

I want to have a quiet command-line such as (config)# no logging console causes. Still, I want to make use of # debug commands. It appears to me that # debug depends on syslog level 7. So I cannot ...
1
vote
1answer
71 views

The best approach to access server in DMZ (outside domain) from LAN via command line (MS Windows)

I have two servers: SVR1 (Windows Server 2008) in LAN - part of domain SVR2 (Windows Server 2008) in DMZ - workgroup I need to access SVR2 from SVR1 via command line batch - copy some files and ...
0
votes
1answer
70 views

change in Registry settings does not reflect for the corresponding settings in GUI in windows 2003 server

I have updated registry value for Software Restriction Policies/Security Levels. However, changes were not reflecting in the GUI. I have restarted the server still no effect. below command is used to ...
0
votes
2answers
119 views

How to run batch file without a window in ONE file

I know how to run batch files without a window thanks to this question here: Run a .bat file in a scheduled task without a window. The first answer is the one I am using. It states that to run a ...
0
votes
2answers
42 views

Using find to exclude a directory and tar up everything else in a directory

I have following in a directory: dir1 dir2 file1 file2 I want to tar up everything except dir1 When I do: find . -path '*dir1*' -prune -o -print I don't see dir1 in the output ( as expected) ...
1
vote
1answer
54 views

Will systeminfo's “OS Name:” line distinguish between Windows 2003 and 2003 R2?

First, please verify visually that you have a 2003 R2 installation by opening Control Panel\System Properties and checking that R2 is shown like this: Alternatively, R2 should be mentioned on the ...
-3
votes
1answer
44 views

How does “yum info” work? [closed]

I want to know how the yum info command works. I know yum info will display information about the installed package, but I really want to know which file it reads for that information. Whether it's ...
0
votes
2answers
29 views

Replace date in epoch (seconds) format to normal in a log file

I am on a ubuntu machine trying to read from log files and found the logs contain date and time in epoch format(seconds). How can I convert these dates in numbers into any readable format from command ...
0
votes
1answer
135 views

Change user password on other domain command line

I'd like to change user's password using cmd.exe on domain account. I tried net user user_name * /domain but it doesn't work, because my user is on another domain. How can I specify, to which ...
-1
votes
1answer
127 views

How to display free disk space on cifs mount on linux command line? [closed]

In case there's any distinction between OS and shell necessary, I want to run the command on Ubuntu 14.04 with Linux 3.13 in GNU bash 4.3.11. mount.cifs's version is 6.0 using smb2 protocol. After ...
3
votes
8answers
307 views

Ping stops responding after the first line

I have a problem with the PING command on Windows 8.1. During a ping, the command returns no further output after sending the first ping request. For example: ping 192.168.1.200 Pinging ...
1
vote
1answer
74 views

Simple backup tape wiping, from linux shell?

I have a pile of old unencrypted backup tapes I want to discard, and I'm looking for a really simple and free erase method. I have previously used the following method to zero hard drives on linux. ...
0
votes
0answers
52 views

How to modify environment variable in Apache for CLI

I have a Zend framework 2 application which needs to be configured through an environment variable. On my local host (Windows) for example I set APPLICATION_ENV = local and with ...
0
votes
0answers
22 views

When changing the Win display lang, will builtin CLI tools params / stdout|stderr messages also change?

I need to write a CMD script (other shells are not allowed / available) that will execute on multiple servers with different display languages. When looking at an Windows built in tool, such as ...
0
votes
1answer
96 views

IBM AMM BladeCenter 39Y9661 problems

i'm working on a bladecenter S and i try to update my amm with putty via COM port, but when i want to see my version it doesn't work i use like every time this command: env -T system:mm[1] info ...
-4
votes
1answer
337 views

“ifconfig” command not found and networking tools package information needed [closed]

I have 2 questions : 1) "ifconfig" command is not found in centos 7, i tried to find in /sbin, there also command is not available. Doesn't this essential tool not included in minimal installation ( ...
1
vote
1answer
67 views

AWS EB Change db name via DBInstanceIdentifier

I'm using ElasticBeanstalk for many apps and many environments (not that many but just making a point here). I'd like to have my databases (RDS instances) have human-readable names. When I change a ...
3
votes
1answer
100 views

Troubleshooting DNS issue

I am trying to troubleshoot a DNS issue I am currently having with a new project host on an AWS EC2 instance. It is a brand new domain, and I have already updated the nameservers on the registrar ...
1
vote
2answers
291 views

Kill all currently running cron jobs

For some reason my cron job scripts aren't exiting cleanly and they're backing up my server. There are currently a couple hundred processes running for one of my users. I can use the following command ...
2
votes
3answers
367 views

How can I deploy template-based VM from Linux?

We are trying to provide our Linux engineers with a CLI to deploy VMWare vSphere VMs using templates. The vSphere CLI looks promising but the documentation doesn't mention templates. Does anyone ...
0
votes
2answers
126 views

How to check the connection to remote server with a digital certificate (client authentication)

I got a digital certificate with extensions for server and client authentication and a private key. Now I want to connect to a remote server (REST web services) which should accept my requests ...
-1
votes
1answer
32 views

tail -n equivalent for X last chars of a file?

I'm searching a way to display X last chars of afile. I've a big log file with everything on 1 line... I'm just interested for the last chars of this log. I didn't found anything to solve my ...
0
votes
0answers
59 views

Checkpoint Firewall - R75.3 - how to view time of recent CLI change

I'm trying to figure out when a colleague processed a change in the last couple of days. Very in experienced in expert or router modes. Any tips? Regards!
0
votes
0answers
24 views

How do I change the deploy directory when using Elastic Beanstalks CLI tool?

When I deploy using the EB CLI tool, with: git aws.push It deploys to /var/app/current How do I change that to deploy to /var/www/html ? Thanks
0
votes
1answer
437 views

Elastix “asterisk -r” command not working “-bash: asterisk: command not found”

I'm having trouble administering the current version of Elastix from the command line on a CentOS 6.3 box. I believe the command I'm look for is asterisk -r however I cannot figure out how to access ...
0
votes
2answers
77 views

Connect two servers with RJ-45 cable and iptables (without switch!)

I have two servers and server_1 is connected to INTERNET port (of server farm) at eth0. No switch. They connected with cable from (server_1)eth1 -> (server_2)eth0 : ifconfig of (server_1): eth0 ...
3
votes
5answers
312 views

del *.txt removes also file.txt_backup

Imagine that we have directory c:\test with following files: first.txt second.doc third.txt fourth.txt_bak I want to remove only txt files, but leave doc and txtwhatever untouched. When I run ...
0
votes
0answers
304 views

ssh reverse tunnel port forwarding connection fails

Updated: diagram http://s22.postimg.org/b2jfgawup/diagram_ssh_tunnel_a1.png I am able to do a reverse port forwarding through the PUTTY GUI with settings similar to below. once I apply this setting, ...
1
vote
1answer
455 views

Replace wildcard certificate on multiple sites at once (using command line) on IIS 7.5

I have 3 websites: aaa.my-domain.com, bbb.my-domain.com and ccc.my-domain.com all using a single wildcard certificate *.my-domain.com on IIS 7.5 Windows Server 2008R2 64-bit. That certificate expires ...
2
votes
1answer
154 views

Cisco 7604 router runs out of memory when loading the IOS image, yet runs a different image with similar reqs

I am experiencing an unusual memory issue with a Cisco 7604 router, specifically the memory on the Supervisor Engine (SUP32-GE-3B) and how it pertains to IOS requirements. I was preparing the router ...
2
votes
1answer
264 views

Network Interface binding order on Windows 8.1

When I query the local interfaces on windows 8 in the command line, I could see the results listed below: C:\> netsh interface show interface Admin State State Type ...
0
votes
0answers
39 views

Odd behaviour with varnishlog and stream redirecting

I wrote a helper to debug varnish installation and have used it on both production and development server. The odd thing is, I encountered different behaviour even though the setup is nearly identical ...
1
vote
2answers
2k views

Windows Server 2012 Can't Delete Folder/Files

I've got a folder with two ISO files in it and I don't need them anymore, however I can't delete the folder! I am an administrator and also the owner of the files. When I try and delete using windows ...
0
votes
3answers
274 views

Tail a file from ssh and mirror to a local file

To tail a file over ssh, I can use ssh -t remotebox "tail -f /var/log/remote.log" However, it is possible to sync the tail with a local file? So a file automatically mirror the update of the tail ...
2
votes
1answer
176 views

Are the xen xe commands available on Oracle VM 3.2?

I recently discovered that Citrix has opensourced XenServer, and that XCP (which we have been using) is more or less now legacy and needless. While looking at rebuilding our systems on XenServer 6.2, ...
0
votes
2answers
2k views

How to run multiple commands with psexec? [duplicate]

I need to run a command to uninstall forefront on some of our workstations and am having a bit of trouble formatting the command. Here's what needs to happen (in multiple commands) xcopy ...