Command Line interface (CLI)

learn more… | top users | synonyms (2)

3
votes
1answer
621 views

Defrag options in Windows Server 2012

I am looking at the command line options for defrag.exe as well as the "ScheduledDefrag" task on Windows Server 2012, and I don't understand some of the arguments. In particular, when I view defrag ...
2
votes
1answer
101 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 ...
2
votes
1answer
642 views

“net session” listing GUIDs for computer names. Won't accept its own GUIDs

When I run "net session" or "net session /list", I get GUIDs for computer names: C:\Users\Administrator>net session Computer User name Client Type Opens Idle time ...
2
votes
1answer
230 views

Configure incoming connection (VPN) on Microsoft Hyper-V 2008 via command line

In both Windows 7 and Windows Server 2008 (R2), it is extremely easy to allow incoming connections (VPN). Just go to overview of network adapters, click 'file' and click 'new incoming connection'. ...
1
vote
1answer
636 views

Full Information from Terminal Services Manager (tsadmin.msc) via command line

I would like to get the full session information that is presented in the Terminal Services Manager via the command line or PowerShell (so that it can be used in automation) or at the very least the ...
1
vote
1answer
57 views

Scheduled capture from COM port

I want to capture COM output to a daily file. I can capture manually, using something like RS232 Data Logger, but I want to run a scheduled task so I get a daily log of the data captured. Is there ...
1
vote
1answer
197 views

How do I configure a stored procedure wrapper and security settings to provide safe access to command-line operations?

I'm ultimately trying to find a way to allow the safe use of BCP and selected other command-line functionality from within SQL Server. The organisation I am in currently have xp_cmdshell disabled ...
1
vote
1answer
345 views

How to execute rskeymgmt utility silently in windows server 2008

When i run reskeymgmt.exe - to create a backup copy of the encryption key, it responses "Are you sure want to extract the key from the Report Server? Yes (y)/ No (n)?" I found this link which ...
1
vote
1answer
139 views

EC2 API Tools formatting in Ubuntu terminal

The output of ec2 cli tools on my mac is nice and formatted like so: RESERVATION r-xxxx xxxx cl-xx INSTANCE i-xxxx ami-xxx TAG instance i-xxx ...
0
votes
1answer
136 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 ...
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
1answer
68 views

Change VNC password without losing the session

I have a VNC session to my server(linux), but now i need to change their password, however, i cannot lose that session. If I use this command: vncpasswd [passwd-file] Does anyone know if I will ...
0
votes
1answer
67 views

Batch file output issue

I am trying to get a batch file to output some data to a CSV file. The command I have works perfectly in the command line but not when I copy it to a batch file. In the batch file, it just hangs and ...
0
votes
1answer
50 views

How to restrict a Linux program's permissions

I'm running a native linux program from PHP using shell_exec. Specifically, calling antiword to extract text from Microsoft Word files users uploaded. However, as I've got no way of assessing ...
0
votes
1answer
77 views

measure RDP time to login

I have a requirement to, for a short while, measure the login time to remote desktop services. I have found a fork of "rdesktop", called "rdesktop-nogui", which is without X bindings and is possible ...
0
votes
1answer
81 views

Netcat: connection lost before transfer is complete

Interesting thing with Netcat (nc) in CentOS 5 or 6 (nc-1.84-10.fc6 or nc-1.84-22.el6.x86_64). How can I work it around? I can't find a bug about this, but It models a file transfer to a remote ...
0
votes
1answer
528 views

Cron won't use msmtp to send emails in case of failed cronjob

I'm trying to configure a machine so that it will send me an email if one of the cronjobs output something in case of an error. I'm using Debian Wheezy. Cron is working normally (without the email ...
0
votes
1answer
71 views

Windows Azure Cloud Service - add Local Security Policy to a user account in startup task

I have a Windows Azure Cloud Service project that includes a startup task Startup.cmd file to create some scheduled tasks. In this file I am using the command line to create a user account which I ...
0
votes
1answer
176 views

35 times increased latency between data send rate of 1 millisecond vs 100 microseconds. WHY?

Experiment hping -S --data 100 -c 100 10.56.1.2 -i u100 round-trip min/avg/max = 0.5/14.0/15.8 ms hping -S --data 100 -c 100 10.56.1.2 -i u1000 round-trip min/avg/max = 0.3/0.4/4.8 ms Observation: ...
0
votes
1answer
155 views

Is it possible to execute remote GUI process locally in Windows?

I know that Linux can open - for example - a firefox window in a local pc as if it was a window opened remotely. Can I do the same thing in windows? N.B. I use PsExec but it can launch a program from ...
0
votes
1answer
1k views

Disable LDAP service in CentOS 6.3

What command needed to disable LDAP service in CentOS 6.3. I tried: authconfig --disableldap but it doesn't work. I am trying to run ISC-DHCP in my machine but it always shows Not searching ...
0
votes
1answer
99 views

Debian hanging on MySQL shutdown

One of my websites had too many MySql connections, I did some performance in the scripting and shutdown some expensive queries to make the website more reachable again. Because my processlist was ...
0
votes
1answer
569 views

Creating a Jenkins build farm in a hands-off manner?

My colleague and I have set up and run Jenkins on a KVM guest running Ubuntu 12.04 with good results for a while now. We are thinking about deploying a cluster of Jenkins CI hosts in master/slave ...
0
votes
1answer
134 views

Escaping characters when calling ssh from windows

I need to call an ssh command from a Windows command prompt that will execute a command on a remote Linux machine. The command accepts two string parameters, one of which can potentially be ...
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 ...
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 ...
1
vote
0answers
40 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
0answers
129 views

smbget looses mtime

Unfortunately smbget looses the mtime of files: https://bugzilla.samba.org/show_bug.cgi?id=4199 Is there an other command line tool to get files which keeps the mtime?
1
vote
0answers
78 views

Is it possible to set up a pptp server in windows via console?

I want to be able to turn a machine into a pptp server from commandline so that it can be scripted, is this possible?
1
vote
0answers
529 views

Controlling rdp listener connections from command line

RPD on my windows 2003 server sometimes becomes incapable to accept connections. But netstat shows that port is listened. c:\> netstat -ano | find "3389" TCP 192.168.1.1:3389 0.0.0.0:0 ...
1
vote
0answers
120 views

Services do not appear in sc list

We have a couple of application services that are registered and appear in the MMC Service list, but when I use the sc command they do not appear. sc query type= all Are there restrictions on what ...
1
vote
0answers
142 views

Windows 2008 Scheduled Tasks and Parallel instance issue

I have a scheduled task launching a bat file which runs a CLI PHP script. The scheduled task is configured to run every 5 minutes, and run multiple instances in parallel. However, windows is ...
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 ...
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
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
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
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, ...
0
votes
0answers
344 views

setting up dell compellent array from command line

So we have a few compellent storage arrays. I have little knowledge of these things but I am improving. so my basic question is I want to configure the server via cli and make some script which does ...
0
votes
0answers
44 views

Is there a simple command to delete multiple ip sla policies?

I have a Cisco 819 router and on it there are a lot of ip sla policies. when I run the sh runcommand I get the following; ip sla auto discovery ip sla 2 http get http://www.facebook.com cache ...
0
votes
0answers
19 views

CLI modify-user with add-mysql returning “A db login with same name already exists”

I am trying to give an existing user access to a newly created database via virtualmin via CLI. This what I am using: virtualmin modify-user --domain mydomain.com --user existingusername --add-mysql ...
0
votes
0answers
176 views

Output results of findstr at a Batch file so they can be read by PHP

I have this Batch file which looks for a string through a the files in the current folder: @echo off for /f %%i in ("*") do ( findstr /m /C:color "%%i" ) Now I would like to output the ...
0
votes
0answers
79 views

fork/vfork are failing but return an out of bounds errno

I have a piece of software running on a 64 bit Cent 5.8 Final box, kernel 2.6.18. This piece of software using fork and vfork. Recently some failures occurred, and in my logging I can see that fork ...
0
votes
0answers
76 views

Is there any way to 'describe-instances' for another AWS account from awscli?

I've added a role to allow another account to list instances, but there doesn't appear to be any option to choose which account I'm listing instances from. Is there some undocumented option to pass in ...
0
votes
0answers
138 views

Edit DNS records from the command line in Mountain Lion Server

I'm trying to edit a DNS A record in Mountain Lion server using the serveradmin command. I can pull up the list of records using sudo serveradmin settings dns and I get this record I want to ...
0
votes
0answers
74 views

Display only the last line of a windows command line executable

I'm trying to write a batch script that manages simple software deployments. One of the steps in the script compresses a file structure into a 7zip archive. During the compression process, the z7ip ...
0
votes
0answers
333 views

windows command line start mysql with --skip-networking

Following How to start a service with certain start parameters on Windows. Any ideas why the following doesn't work? sc start MySQL --skip-networking mysql -uroot -p -e "show variables like ...